import request from '@/utils/request'

// 获取反馈列表
export function getFeedbackList(params) {
  return request({
    url: '/admin/feedbacks',
    method: 'get',
    params
  })
}

// 获取反馈详情
export function getFeedbackDetail(feedbackId) {
  return request({
    url: `/admin/feedbacks/${feedbackId}`,
    method: 'get'
  })
}

// 回复反馈
export function replyFeedback(feedbackId, data) {
  return request({
    url: `/admin/feedbacks/reply/${feedbackId}`,
    method: 'post',
    data
  })
}

// 更新反馈状态
export function updateFeedbackStatus(feedbackId, status) {
  return request({
    url: `/admin/feedbacks/status/${feedbackId}`,
    method: 'post',
    data: { status }
  })
}

// 删除反馈
export function deleteFeedback(feedbackId) {
  return request({
    url: `/admin/feedbacks/delete/${feedbackId}`,
    method: 'post'
  })
} 